﻿using Balloonerds.Algebra;

namespace RayTracer
{
    public class Ray
    {
        public Vector Origin { get; set; }
        public Vector Direction { get; set; }

        public Vector ProjectPoint(double distance)
        {
            return Origin + distance * Direction;
        }

        public override string ToString()
        {
            return string.Format(System.Globalization.NumberFormatInfo.InvariantInfo, "{0};{1}", Direction, Origin);
        }
    }
}
